﻿<%@ Page Title="Vacancy Management" Language="C#" MasterPageFile="~/Employee/MasterPageEmployee.master" AutoEventWireup="true" CodeFile="VacancyManager.aspx.cs" Inherits="Employee_VacancyManager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentmain" Runat="Server">
    <div id="MainApplyVacancy">
        <h2>
            <asp:Label ID="lblTitleIntervew" runat="server" Text="List Vacancy Management"></asp:Label>
        </h2>
        <div id="Search">
            
            <asp:DropDownList ID="ddlTypeSearch" runat="server" CssClass="ddlCss" 
                ToolTip="Choose search follow ID or Name Applicant">
                <asp:ListItem>VacancyID</asp:ListItem>
                <asp:ListItem>VacancyName</asp:ListItem>
            </asp:DropDownList>
            <asp:TextBox ID="txtTextSearch" runat="server" 
                ToolTip="Enter Name or ID of Applicant" Width="200px"></asp:TextBox>
            
            <asp:Button ID="btnSearch" runat="server" CssClass="btnSearch" Text="Search" onclick="btnSearch_Click" />
        </div>
        <asp:GridView ID="GVVacancyInfor" runat="server" AutoGenerateColumns="False" 
            Width="700px" BackColor="White" BorderColor="#3366CC" BorderStyle="None" 
            BorderWidth="1px" CellPadding="3" PageSize="20" ShowHeaderWhenEmpty="True" 
            AllowPaging="True" 
            Font-Size="12px" onpageindexchanging="GVInterviewInfor_PageIndexChanging">
            <Columns>
                <asp:TemplateField HeaderText="VacancyID">
                    <ItemTemplate>
                        <asp:Label ID="lblID" runat="server" Text='<%#"<a href=\"HRViewVacancyDetails.aspx?ID="+Eval("VacancyID")+"\">"+ Eval("VacancyID")+"</a>" %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Title">
                    <ItemTemplate>
                        <asp:Label ID="lblInterviewerName" runat="server" Text='<%# Eval("Title") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Empty">
                    <ItemTemplate>
                        <asp:Label ID="lblVacancyID" runat="server" Text='<%# Eval("NumberEmpty") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Salary">
                    <ItemTemplate>
                        <asp:Label ID="lblApplicantName" runat="server" Text='<%# Eval("Salary") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Address Workplace">
                    <ItemTemplate>
                        <asp:Label ID="lblDate" runat="server" Text='<%# Eval("Workplace") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" 
                Font-Size="15px" />
            <PagerStyle BackColor="#C1C1FF" HorizontalAlign="Center" 
                Wrap="True" BorderColor="#000066" Font-Bold="True" Font-Names="Calibri" 
                Font-Size="14px" Font-Underline="True" VerticalAlign="Middle" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
        </asp:GridView>
        <asp:Button ID="btnCreateVacancy" runat="server" Text="Create Vacancy" 
            Height="25px" PostBackUrl="~/Employee/CreateVacancy.aspx" />
    </div>
</asp:Content>

